﻿#include <opencv2\opencv.hpp>
#include <iostream>

using namespace cv;
using namespace std;

int main()
{
	Mat image = imread("C:/Users/aaa/Pictures/Screenshots/Lena.png");
	Mat black = imread("C:/Users/aaa/Pictures/Screenshots/mark_black.png");
	Mat white = imread("C:/Users/aaa/Pictures/Screenshots/mark_white.png");

	Mat Min, Max;
	min(image, white, Min);
	max(image, black, Max);

	Mat gray;
	cvtColor(image, gray, COLOR_BGR2GRAY);

	double minVal, maxVal;
	Point minLoc, maxLoc;

	minMaxLoc(gray, &minVal, &maxVal, &minLoc, &maxLoc); 



	return 0;
}